<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_CC9DoMhqEeKWxPtn_aNzzQ" targetNamespace="http://camunda.org/schema/1.0/bpmn">
  <bpmn2:process id="failingProcessWithNestedExecutions" name="Failing Process With Nested Executions" isExecutable="true">
    <bpmn2:startEvent id="StartEvent_1">
      <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_1" sourceRef="StartEvent_1" targetRef="SubProcess_1"/>
    <bpmn2:subProcess id="SubProcess_1" name="Sub Process">
      <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
      <bpmn2:startEvent id="StartEvent_2">
        <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
      </bpmn2:startEvent>
      <bpmn2:parallelGateway id="ParallelGateway_1">
        <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
        <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
      </bpmn2:parallelGateway>
      <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="StartEvent_2" targetRef="ParallelGateway_1"/>
      <bpmn2:sequenceFlow id="SequenceFlow_3" sourceRef="ParallelGateway_1" targetRef="theUserTask"/>
      <bpmn2:userTask id="theUserTask" camunda:async="true" name="User Task">
        <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
      </bpmn2:userTask>
      <bpmn2:sequenceFlow id="SequenceFlow_4" sourceRef="ParallelGateway_1" targetRef="theServiceTask"/>
      <bpmn2:serviceTask id="theServiceTask" camunda:async="true" camunda:class="org.camunda.bpm.engine.test.api.mgmt.AlwaysFailingDelegate" name="Service Task">
        <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
      </bpmn2:serviceTask>
      <bpmn2:parallelGateway id="ParallelGateway_2">
        <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
        <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
      </bpmn2:parallelGateway>
      <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="theUserTask" targetRef="ParallelGateway_2"/>
      <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="theServiceTask" targetRef="ParallelGateway_2"/>
      <bpmn2:endEvent id="EndEvent_1">
        <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
      </bpmn2:endEvent>
      <bpmn2:sequenceFlow id="SequenceFlow_7" sourceRef="ParallelGateway_2" targetRef="EndEvent_1"/>
    </bpmn2:subProcess>
    <bpmn2:endEvent id="EndEvent_2">
      <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_8" sourceRef="SubProcess_1" targetRef="EndEvent_2"/>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1" name="Failing Process With Nested Executions">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="failingProcessWithNestedExecutions">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_3" bpmnElement="StartEvent_1">
        <dc:Bounds height="36.0" width="36.0" x="115.0" y="252.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="22.0" width="70.0" x="98.0" y="293.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_SubProcess_2" bpmnElement="SubProcess_1" isExpanded="true">
        <dc:Bounds height="354.0" width="553.0" x="228.0" y="93.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_3" targetElement="_BPMNShape_SubProcess_2">
        <di:waypoint xsi:type="dc:Point" x="151.0" y="270.0"/>
        <di:waypoint xsi:type="dc:Point" x="228.0" y="270.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="176.0" y="270.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_4" bpmnElement="StartEvent_2">
        <dc:Bounds height="36.0" width="36.0" x="264.0" y="253.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="22.0" width="70.0" x="247.0" y="294.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_ParallelGateway_2" bpmnElement="ParallelGateway_1">
        <dc:Bounds height="50.0" width="50.0" x="348.0" y="246.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="22.0" width="104.0" x="321.0" y="301.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_StartEvent_4" targetElement="_BPMNShape_ParallelGateway_2">
        <di:waypoint xsi:type="dc:Point" x="300.0" y="271.0"/>
        <di:waypoint xsi:type="dc:Point" x="348.0" y="271.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_UserTask_2" bpmnElement="theUserTask">
        <dc:Bounds height="80.0" width="100.0" x="455.0" y="132.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_UserTask_2">
        <di:waypoint xsi:type="dc:Point" x="373.0" y="246.0"/>
        <di:waypoint xsi:type="dc:Point" x="373.0" y="172.0"/>
        <di:waypoint xsi:type="dc:Point" x="455.0" y="172.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="373.0" y="221.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_3" bpmnElement="theServiceTask">
        <dc:Bounds height="80.0" width="100.0" x="455.0" y="336.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_3">
        <di:waypoint xsi:type="dc:Point" x="373.0" y="296.0"/>
        <di:waypoint xsi:type="dc:Point" x="373.0" y="376.0"/>
        <di:waypoint xsi:type="dc:Point" x="455.0" y="376.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="373.0" y="321.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ParallelGateway_3" bpmnElement="ParallelGateway_2">
        <dc:Bounds height="50.0" width="50.0" x="600.0" y="246.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="22.0" width="104.0" x="573.0" y="301.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_UserTask_2" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="555.0" y="172.0"/>
        <di:waypoint xsi:type="dc:Point" x="577.0" y="172.0"/>
        <di:waypoint xsi:type="dc:Point" x="625.0" y="172.0"/>
        <di:waypoint xsi:type="dc:Point" x="625.0" y="246.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="6.0" width="6.0" x="596.0" y="217.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ServiceTask_3" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="555.0" y="376.0"/>
        <di:waypoint xsi:type="dc:Point" x="577.0" y="376.0"/>
        <di:waypoint xsi:type="dc:Point" x="625.0" y="376.0"/>
        <di:waypoint xsi:type="dc:Point" x="625.0" y="296.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="6.0" width="6.0" x="622.0" y="371.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_EndEvent_3" bpmnElement="EndEvent_1">
        <dc:Bounds height="36.0" width="36.0" x="700.0" y="253.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ParallelGateway_3" targetElement="_BPMNShape_EndEvent_3">
        <di:waypoint xsi:type="dc:Point" x="650.0" y="271.0"/>
        <di:waypoint xsi:type="dc:Point" x="700.0" y="271.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_EndEvent_4" bpmnElement="EndEvent_2">
        <dc:Bounds height="36.0" width="36.0" x="831.0" y="252.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_SubProcess_2" targetElement="_BPMNShape_EndEvent_4">
        <di:waypoint xsi:type="dc:Point" x="780.0" y="270.0"/>
        <di:waypoint xsi:type="dc:Point" x="831.0" y="270.0"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>